package com.aruba.aopapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.SystemClock;
import android.view.View;

import com.aruba.aopapplication.annotations.BehaviorTrace;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @BehaviorTrace("上传")
    public void upload(View view) {
        SystemClock.sleep(300);
    }

    @BehaviorTrace("下载")
    public void download(View view) {
        SystemClock.sleep(400);
    }

    @BehaviorTrace("扫码")
    public void scan(View view) {
        SystemClock.sleep(500);
    }
}